﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace RBAC.LuFang.Repository.Migrations
{
    public partial class 企业 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Enterprises",
                columns: table => new
                {
                    enterpriseid = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    livestockfarm = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    personincharge = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    number = table.Column<int>(type: "int", nullable: false),
                    enterprisename = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    provinceID = table.Column<int>(type: "int", nullable: false),
                    theCityID = table.Column<int>(type: "int", nullable: false),
                    countyID = table.Column<int>(type: "int", nullable: false),
                    enterpriseDate = table.Column<DateTime>(type: "datetime2", nullable: true),
                    enterpriseDesc = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    enterpriseBan = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    enterprisePeople = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    goodsId = table.Column<int>(type: "int", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Enterprises", x => x.enterpriseid);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Enterprises");
        }
    }
}
